package net.hn.hnms.biz.cockpit.domain.vo;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ApiModel(value = "风险等级Vo", description = "风险等级Vo")
public class RiskLevelVo {

    @ApiModelProperty("风险总数")
    private Integer riskTotal;

    @ApiModelProperty("一般风险")
    private Integer generalRisk;

    @ApiModelProperty("一般风险比例")
    private String generalRiskRate;

    @ApiModelProperty("低风险")
    private Integer lowRisk;

    @ApiModelProperty("低风险比例")
    private String lowRiskRate;

    @ApiModelProperty("高风险")
    private Integer highRisk;

    @ApiModelProperty("高风险比例")
    private String highRiskRate;

    @ApiModelProperty("重大风险")
    private Integer majorRisk;

    @ApiModelProperty("重大风险比例")
    private String majorRiskRate;

    public Integer getRiskTotal() {
        if (riskTotal == null)
            return 0;
        return riskTotal;
    }

    public Integer getGeneralRisk() {
        if (generalRisk == null)
            return 0;
        return generalRisk;
    }

    public String getGeneralRiskRate() {
        if (generalRiskRate == null)
            return "0";
        return generalRiskRate;
    }

    public Integer getLowRisk() {
        if (lowRisk == null)
            return 0;
        return lowRisk;
    }

    public String getLowRiskRate() {
        if (lowRiskRate == null)
            return "0";
        return lowRiskRate;
    }

    public Integer getHighRisk() {
        if (highRisk == null)
            return 0;
        return highRisk;
    }

    public String getHighRiskRate() {
        if (highRiskRate == null)
            return "0";
        return highRiskRate;
    }

    public Integer getMajorRisk() {
        if (majorRisk == null)
            return 0;
        return majorRisk;
    }

    public String getMajorRiskRate() {
        if (majorRiskRate == null)
            return "0";
        return majorRiskRate;
    }
}
